package com.xinou.daily_report.service;

import com.xinou.common.base.config.ApiResponse;
import com.xinou.common.base.database.BasePO;
import com.xinou.daily_report.PO.FruitPO;
import com.xinou.daily_report.PO.FruitUrgePO;
import com.xinou.daily_report.VO.fruit.FruitInfoVO;
import com.xinou.daily_report.VO.fruit.FruitCountVO;
import com.xinou.daily_report.VO.fruit.FruitListVO;
import com.xinou.daily_report.entity.SysFruit;
import com.baomidou.mybatisplus.extension.service.IService;
import io.lettuce.core.support.BasePool;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ${author}
 * @since 2021-06-25
 */
public interface SysFruitService extends IService<SysFruit> {

    ApiResponse<FruitListVO> fruitList(FruitPO fruitPO);

    ApiResponse<FruitCountVO> fruitCount(FruitPO po);

    ApiResponse<Void> fruitSave(FruitPO fruitPO);

    ApiResponse<FruitInfoVO> fruitGetById(FruitPO fruitPO);


    ApiResponse<Void> fruitConfirmById(FruitPO fruitPO);

    /**
     * 确认收到催缴
     * @return
     */
    ApiResponse<Void> urgeConfirm();

    /**
     * 催缴水果基金
     * @return
     * @param po
     */
    ApiResponse<Void> fruitUrge(FruitUrgePO po);
}
